package com.sidianzhong.sdz.controller;


import com.sidianzhong.sdz.service.*;

import com.sidianzhong.sdz.utils.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.Date;
import java.util.List;
import java.util.ResourceBundle;

@Api(description = "测试接口")
@Controller
public class testController {

    @Autowired
    CoinInfoService coinInfoService;
    @Autowired
    UserService userService;
    @Autowired
    UserWalletService userWalletService;


    @ApiOperation(value = "测试注册", notes = "通过post方法请求，传入对应的字段信息，创建一条投单信息")
    @RequestMapping(value = "/registerTest",
            method = RequestMethod.POST,
            produces = "application/json;charset=UTF-8")
    @ResponseBody
    public Object register(
            HttpServletRequest request,
            @RequestParam(value = "phone") String phone
    ) throws IOException {

        return new ResponseEntity<>(ResultModel.ok(true), HttpStatus.OK);
    }


}
